#include <bits/stdc++.h>
#define int long long
#define N 100005
using namespace std;
int a[N], n, ans;
bool dead[N];
signed main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    cin >> n;
    for(int i = 1; i <= n; i++) cin >> a[i];
    sort(a+1, a+n+1);
    for(int i = 1, j = 1; i <= n && j <= n; i++, j++) {
        while(a[i] >= a[j] && j <= n) j++;
        if(j > n) break;
        dead[i] = 1;
    }
    ans = n;
    for(int i = 1; i <= n; i++) ans -= dead[i];
    cout << ans;
    return 0;
}
